//
//  NSString+JwCate.h
//  JwPack
//
//  Created by 陈警卫 on 2024-07-17.
//

#import <Foundation/Foundation.h>

@interface NSString (JwCate)

/// 去除前后空格
- (NSString *)jw_trimSpace;

/// 去除前后换行
- (NSString *)jw_trimLine;

/// 去除前后空格和换行
- (NSString *)jw_trimSpaceAndLines;

/// 去除所有空格
- (NSString *)jw_trimAllSpace;

/// 去除所有换行
- (NSString *)jw_trimAllLines;

/// 去除所有空格和换行
- (NSString *)jw_trimAllSpaceAndLines;

/// 校验字符串
+ (NSString *)jw_stringValue:(id)value;

/// 检查字符串是否为空
- (BOOL)jw_isBlank;

/// 检查字符串是否为空或只包含空白字符
- (BOOL)jw_isBlankChar;

/// 复制到剪贴板
- (void)jw_copyPasteboard;

/// 转拼音
- (NSString *)jw_pinyinTon:(BOOL)ton;

/// 随机数
+ (NSString *)jw_randomString;

@end

